package com.huike.web.controller.report;

import com.huike.common.core.domain.AjaxResult;
import com.huike.report.domain.vo.Funnel;
import com.huike.report.service.IReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.huike.common.core.controller.BaseController;

import java.util.Date;


@RestController
@RequestMapping("/report")
public class ReportController extends BaseController {
    @Autowired
    IReportService iReportService;


    @GetMapping("/getVulnerabilityMap/{beginCreateTime}/{endCreateTime}")
    public AjaxResult getVulnerabilityMap(@PathVariable Date beginCreateTime, @PathVariable Date endCreateTime) {
        Funnel funnel = iReportService.selectFunnel(beginCreateTime, endCreateTime);
        // reportServiceImpl
        return AjaxResult.success(funnel);

    }
}